// pages/my/getcash/getcash.js
Page({
  data: {
    list: []
  },
  onLoad: function (options) {
    this.getData();
  },
  getData() {
    getApp().globalData.http.getCashRecord().then(res => {
      this.setData({
        list: res.data
      });
    });
  },
  toGetCashDetail(e) {
    wx.navigateTo({
      url: "/pages/my/getcashdetail/getcashdetail?id=" + e.currentTarget.dataset.id,
    })
  }
})